import {
  Spin,
  DataSet,
} from 'choerodon-ui/pro';
import React, {useMemo} from 'react';
import {Size} from 'choerodon-ui/lib/_util/enum';
import spinDS from './spinDataSet';



const spinBasic: React.FC = ():React.ReactElement => {

  const spinDataSet:DataSet = useMemo(() => new DataSet(spinDS()), []);

  return (
    <>
      <Spin dataSet={spinDataSet} size={Size.small} />
      <Spin dataSet={spinDataSet} />
      <Spin dataSet={spinDataSet} size={Size.large} />
    </>
  );
};

export default spinBasic;